{namespace be = TYPO3\CMS\Backend\ViewHelpers}
{namespace bu = TYPO3\CMS\Beuser\ViewHelpers}

<tr>
	<td class="col-icon">
		<a href="#" class="t3-js-clickmenutrigger" data-table="be_users" data-uid="{backendUser.uid}" data-listframe="1" title="id={backendUser.uid}">
			<bu:spriteIconForRecord table="be_users" object="{backendUser}" />
		</a>
	</td>
	<td class="col-title">
		<a href="{bu:editRecord(parameters: 'edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}')}">
			<b>{backendUser.userName}</b><br />
			{backendUser.realName}
		</a>
	</td>
	<td>
		<f:if condition="{backendUser.lastLoginDateAndTime}">
			<f:then>
				<f:format.date format="{dateFormat} {timeFormat}">{backendUser.lastLoginDateAndTime}</f:format.date>
			</f:then>
			<f:else>
				<f:translate key="never" />
			</f:else>
		</f:if>
	</td>
	<td class="col-control">
		<f:link.action action="addToCompareList" arguments="{uid: backendUser.uid}" class="btn btn-default"><be:spriteManagerIcon iconName="actions-edit-add"/> <f:translate key="compare" /></f:link.action>
		<div class="btn-group" role="group">
			<a class="btn btn-default" href="#" onclick="top.launchView('be_users', '{backendUser.uid}'); return false;"><be:spriteManagerIcon iconName="actions-document-info" /></a>
			<a class="btn btn-default" href="{bu:editRecord(parameters: 'edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}')}"><be:spriteManagerIcon iconName="actions-document-open" /></a>
			<f:if condition="{backendUser.currentlyLoggedIn} == 1">
				<f:then>
					<span class="btn btn-default disabled"><be:spriteManagerIcon iconName="empty-empty" /></span>
				</f:then>
				<f:else>
					<f:if condition="{backendUser.isDisabled} == 1">
						<f:then>
							<a class="btn btn-default" href="{bu:issueCommand(parameters: 'data[be_users][{backendUser.uid}][disable]=0', redirectUrl: redirectUrl)}"><be:spriteManagerIcon iconName="actions-edit-unhide" options="{title: 'unhide'}" /></a>
						</f:then>
						<f:else>
							<a class="btn btn-default" href="{bu:issueCommand(parameters: 'data[be_users][{backendUser.uid}][disable]=1', redirectUrl: redirectUrl)}"><be:spriteManagerIcon iconName="actions-edit-hide" options="{title: 'hide'}" /></a>
						</f:else>
					</f:if>
				</f:else>
			</f:if>
			<bu:removeUser backendUser="{backendUser}" />
			<bu:SwitchUser backendUser="{backendUser}" />
		</div>
	</td>
</tr>
